import Vue from 'vue'
import VueRouter from 'vue-router'
import News from '@/views/two/News'
import Home from '@/views/two/Home'
import Sports from '@/views/two/Sports'
import SportsHome from '@/views/two/sports/SportsHome'
import SportsForein from '@/views/two/sports/SportsForeign'
import SportsDomestic from '@/views/two/sports/SportsDomestic'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    component: Home,
  },
  {
    path: '/news',
    component: News
  },
  {
    path: '/sports',
    component: Sports,
    children: [
      {
        path: 'sportshome',
        component: SportsHome,
      },
      {
        path: 'sportsforein',
        component: SportsForein,
      },
      {
        path: 'sportsdomestic',
        component: SportsDomestic,
      }
    ]
  },
]
const router = new VueRouter({
  routes
})
export default router